<?php
defined('IN_TS') or die('Access Denied.');
/* 
 * 我收藏的话题
 */
 
$userid = $TS_USER['user']['userid'];
 
$arrCollect = $DB->fetch_all_assoc("select * from ".dbprefix."app_group_topics_collects where userid='".$userid."' order by addtime desc limit 30");

if(is_array($arrCollect)){
	foreach($arrCollect as $item){
		$strTopic = $DB->once_fetch_assoc("select * from ".dbprefix."app_group_topics where topicid = '".$item['topicid']."'");
		$arrTopic[] = $strTopic;
	}
}

$title = '我收藏的话题';

include TmooTemplate("my_collect");